package com.example.demo1103.demo6;

import java.util.function.Function;

public class Test {
    public static void main(String[] args) {
        Function<String,Integer> as=a->{
            Integer c=0;
            System.out.println("a代表的是参数，c代表的是返回值"+c);
            return c;
        };
        String m="参数";
        fun(as,m);
    }

    public static void fun(Function<String,Integer> function, String a){
        function.apply(a);
    }
}

